package com.example.campuslink.viewModel

import android.content.Intent
import com.example.campuslink.commen.tools.putExtraKey
import com.example.campuslink.ui.activity.TuYaActivity
import com.example.campuslink.ui.activity.WordsActivity

class WordsViewModel : BaseViewModel() {
    fun jumpToWordActivity(word: String) {
        startActivity(Intent().apply {
            putExtra(putExtraKey.WORD.key, word)
        }, targetClass = WordsActivity::class.java)
    }

    fun jumpToTuYaActivity() {
        startActivity(Intent(), targetClass = TuYaActivity::class.java)
    }
}